package com.weigee.ktv.v.fragment;

import android.view.View;

import com.l.d.app.library.app.WrapFragment;

/**
 * Created by linde on 2017/4/29.
 * <p/>
 */
final class SimpleFragBackListener implements View.OnClickListener {
    private final WrapFragment fragment;

    SimpleFragBackListener(WrapFragment fragment) {
        this.fragment = fragment;
    }

    @Override
    public void onClick(View v) {
        if (fragment != null) {
            fragment.back();
        }
    }
}
